﻿using System;
namespace Cuda.Test.Cuda
{
    /// <summary>
    /// CudaModle
    /// </summary>
    public class CudaModle
    {
        /// <summary>
        /// BuiltinModules
        /// </summary>
        public class BuiltinModules
        {
            /// <summary>
            /// Aync
            /// </summary>
			public static readonly CudaModle Test = new CudaModle("Test", System.IO.Path.Combine(Environment.CurrentDirectory, @"..\..\..\Cuda.Device\data\Test.cubin"));
        }
        
        /// <summary>
        /// Initializes a new instance of the <see cref="CudaModle"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="path">The path.</param>
        public CudaModle(string id, string path)
        {
            Id = id;
            Path = System.IO.Path.GetFullPath(path);
        }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Id { get; private set; }

        /// <summary>
        /// Gets or sets the path.
        /// </summary>
        /// <value>The path.</value>
        public string Path { get; private set; }
    }
}
